package gaej.example.contact.client;

import gaej.example.contact.client.Persoon;


import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Dirigent implements Serializable {

	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long dirigentNr;
	@Persistent(defaultFetchGroup = "true")
	private Persoon persoon;
	@Persistent
	private String klasse;
	@Persistent
	private String richting;
	
	public Dirigent() {
		super();
	}

	public Dirigent(String klasse, String richting) {
		super();
		this.klasse = klasse;
		this.richting = richting;
	}

	public Long getDirigentNr() {
		return dirigentNr;
	}

	public void setDirigentNr(Long dirigentNr) {
		this.dirigentNr = dirigentNr;
	}

	
	public Persoon getPersoon() {
		return persoon;
	}

	public void setPersoon(Persoon persoon) {
		this.persoon = persoon;
	}
	
	public String getKlasse() {
		return klasse;
	}

	public void setKlasse(String klasse) {
		this.klasse = klasse;
	}

	public String getRichting() {
		return richting;
	}

	public void setRichting(String richting) {
		this.richting = richting;
	}

}

